class TokenResponse {
  String? code;
  String? msg;
  int? version;
  DataBean? data;

  TokenResponse({this.code, this.msg, this.version, this.data});

  TokenResponse.fromJson(Map<dynamic, dynamic> json) {
    this.code = json['code'];
    this.msg = json['msg'];
    this.version = json['version'];
    this.data = json['data'] != null ? DataBean.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['msg'] = this.msg;
    data['version'] = this.version;
    if (this.data != null) {
      data['data'] = this.data?.toJson();
    }
    return data;
  }

}

class DataBean {
  String? accessToken;
  String? expiresDate;

  DataBean({this.accessToken, this.expiresDate});

  DataBean.fromJson(Map<String, dynamic> json) {    
    this.accessToken = json['accessToken'];
    this.expiresDate = json['expiresDate'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['accessToken'] = this.accessToken;
    data['expiresDate'] = this.expiresDate;
    return data;
  }
}
